/*
 * @Author: 老刘
 * @Date: 2020-04-29 15:51:38
 * @Description: 水平导航
 */
Page({
	data: {
		tabList: [
			{ id: 0, typeName: '全部' },
			{ id: 1, typeName: '测试一' },
			{ id: 2, typeName: '测试二' },
			{ id: 3, typeName: '测试三' },
			{ id: 4, typeName: '测试四' },
			{ id: 5, typeName: '测试五' },
			{ id: 6, typeName: '测试六' },
			{ id: 7, typeName: '测试七' },
			{ id: 8, typeName: '测试八' }
		],
		activeIndex: 0,
		toViewComment: ''
	},
	handleTabChange (e) {
		this.setData({
			activeIndex: e.detail
		});
	},
	handleChangeIndex () {
		this.setData({
			activeIndex: 7
		});
	},
	handleOrientation () {
		this.setData({
			toViewComment: 'orientation'
		});
	}
});
